package org.domeos.framework.api.biz.deployment;

import org.domeos.framework.api.biz.base.BaseBiz;
import org.domeos.framework.api.model.deployment.Deployment;
import org.domeos.framework.engine.exception.DaoException;

import java.util.List;

/**
 * Created by xxs on 15/12/19.
 */
public interface DeploymentBiz extends BaseBiz {

    void createDeployment(Deployment deployment);

    Deployment getDeployment(int id);

    void update(Deployment deployment) throws DaoException;

    void updateDescription(int id, String description);

    List<Deployment> listDeploymentByClusterId(int id);

    List<Deployment> getDeployment(int clusterId, String deployName);
    List<Deployment> getRemoveDeployment(int clusterId, String deployName);

    List<Deployment> listUnfinishedStatusDeployment();

    List<Deployment> listRunningDeployment();
}
